home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / rmold / rmold.man < prev   
Encoding:
Text File  |  1991-03-12  |  2.1 KB  |  62 lines

  1. '\" Copyright 1990 Regents of the University of California
  2. '\" Permission to use, copy, modify, and distribute this
  3. '\" documentation for any purpose and without fee is hereby
  4. '\" granted, provided that this notice appears in all copies.
  5. '\" The University of California makes no representations about
  6. '\" the suitability of this material for any purpose.  It is
  7. '\" provided "as is" without express or implied warranty.
  8. '\" 
  9. '\" $Header: /sprite/src/admin/rmold/RCS/rmold.man,v 1.3 91/03/12 14:19:36 kupfer Exp $ SPRITE (Berkeley)
  10. '/" 
  11. .so \*(]ltmac.sprite
  12. .HS RMOLD cmds
  13. .BS
  14. '\" Note:  do not modify the .SH NAME line immediately below!
  15. .SH NAME
  16. rmold \- Delete old files
  17. .SH SYNOPSIS
  18. \fBrmold\fR [\fIoptions\fR] \fInumDays file file ...\fR
  19. .SH OPTIONS
  20. .IP "\fB\-mod\fR" 15
  21. Use modify time instead of access time to control deletion.
  22. .IP "\fB\-print\fR" 15
  23. Do not actually delete any files;  just print a list of those that
  24. would be deleted.
  25. .IP "\fB\-timesFrom \fIdirectory\fR" 15
  26. For each
  27. .IR file ,
  28. get the access (or modify) time from \fIdirectory\fB/\fIfile\fR
  29. instead of from
  30. .IR file .
  31. .IP "\fB\-help\fR" 15
  32. Print a summary of the command-line options and exit without updating
  33. any targets.
  34. .BE
  35.  
  36. .SH DESCRIPTION
  37. .PP
  38. The \fBrmold\fR program deletes all of the named files that haven't
  39. been accessed in the last \fInumDays\fR days.  It prints the names
  40. of all the files it deleted.  If the \fB-mod\fR switch is given,
  41. then \fBrmold\fR deletes all the files that haven't been modified
  42. in \fInumDays\fR days.  If \fB-print\fR is specified then \fBrmold\fR
  43. prints the names of files that haven't been accessed (or modified)
  44. in \fInumDays\fR, but it doesn't delete any of them.
  45. .PP
  46. If 
  47. .B timesFrom
  48. is specified, 
  49. .B rmold
  50. will use the access (or modify) time of the same-named file in the
  51. given alternate directory.  This option lets you delete old backup files after
  52. the installed version of the file has been around for awhile.  For
  53. example, to delete backup copies of commands that were installed over
  54. 90 days ago, you could do something like
  55. .DS
  56.     cd /sprite/cmds.$MACHINE.old
  57.     rmold -mod -timesFrom /sprite/cmds.$MACHINE 90 *
  58. .DE
  59.  
  60. .SH KEYWORDS
  61. access, delete, modified, old
  62.